package cn.kongwg.yygh.msm.utils;

import org.springframework.beans.factory.InitializingBean;
import org.springframework.beans.factory.annotation.Value;

/**
 * @author kongwg
 * @create 2021-04-15 21:39
 */
public class ConstantPropertiesUtils implements InitializingBean {


    @Value("${aliyun.sms.regionId}")
    private String regionId;

    @Value("${aliyun.sms.accessKeyId}")
    private String accessKeyId;

    @Value("${aliyun.sms.secret}")
    private String secret;

    @Value("${yunpian.apiKey}")
    private String ypApiKey;

    public static String REGION_Id;
    public static String ACCESS_KEY_ID;
    public static String SECRECT;
    public static String YP_API_KEY;

    @Override
    public void afterPropertiesSet() throws Exception {
        REGION_Id = regionId;
        ACCESS_KEY_ID = accessKeyId;
        SECRECT = secret;
        YP_API_KEY = ypApiKey;
    }
}
